import React from 'react';

export default class Comp1 extends React.Component {
  state = {
    count: 1,
  };

  componentDidMount() {
    console.log('Comp1 执行ComponentDidMount');
  }

  render() {
    console.log(this.state)
    return <div>Comp1的内容</div>;
  }
}
